<template>
  <van-nav-bar v-if="route.meta.navBar" :title="route.meta.navBarTitle" left-text="返回" left-arrow @click-left="back" :fixed="Boolean(route.meta.navBarFixed)" />
</template>

<script setup>
import { getCurrentInstance } from 'vue';

const { proxy } = getCurrentInstance();
// 回退
const back = () => proxy.$router.back();

const route = useRoute();
</script>
